package org.university.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 修改密码请求数据传输对象
 */
@Data
public class ChangePasswordRequestDTO {

    @NotNull(message = "userId不能为空")
    private String userId;

    @NotBlank(message = "原密码不能为空")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @Size(min = 8, max = 20, message = "新密码必须介于8到20位有效字符之间")
    private String newPassword;
}
